<div class="portlet light bordered">
	<div class="portlet-body" style="display: block;">
		<form action="/productRecommend/search" class="form-horizontal" method="get" id="searchForm">
			<div class="row ">
				<input type="hidden" name="mainProdId" value="$!mainProd.id">
				<div class="col-md-4">
					<div class="input-group input-medium">
						<input class="form-control" type="text" name="codeOrName" maxlength="10" placeholder="货品编码/名称">
						<input type="text" style="display: none;">
						<span class="input-group-btn">
                            <button class="btn green searchBtn" type="button">Go!</button>
                        </span>
					</div>
				</div>
			</div>
		</form>
	</div>
	<div class="portlet-body form resultsTable">
		<form action="/productRecommend/add" class="form-horizontal" method="post">
			<div class="table-container table-scrollable">
				<table class="table table-bordered table-hover icheck-table">
					<thead>
						<tr>
							<th style="width: 20px"><input type="checkbox" class="icheck group-icheck"></th>
							<th>货品编号</th>
							<th>货品名称</th>
							<th>货品价格</th>
						</tr>
					</thead>
					<tbody>
						#foreach ($!item in $!pageProduct.result)
						<tr class="odd gradeX">
							<td>
								<input type="checkbox" class="icheck" name="productId" value="$!item.id">
							</td>
							<td>$!item.code</td>
							<td>$!item.name</td>
							<td>$!item.salesPrice</td>
						</tr>
						#end
					</tbody>
				</table>
			</div>
			#set($page=$pageProduct)
			#set($pageUrl="/productRecommend/search?pageNo=")
			#parse("_pageModel.htm")
			<div class="form-actions right">
				<a href="javascript:;" thref="/productRecommend/list" class="btn green ajax-post"> <i class="fa fa-check"></i> 提交</a> 
				<a href="javascript:;" data-dismiss="modal" class="btn btn-outline grey-salsa">返回</a>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript" src="/assets/scripts/views-search-model.js"></script>
<script type="text/javascript" src="/assets/scripts/views-icheck.js"></script>